cmake_minimum_required(VERSION 3.15)
project(GitSubmoduleManagerCpp)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 包含头文件目录
include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/include
)

# 添加可执行文件
add_executable(GitSubmoduleManager
    src/main.cpp
    src/utils/git_detector.cpp
    src/core/submodule_rewriter.cpp
    src/providers/gitee_provider.cpp
)

# 在 Windows 上隐藏控制台窗口（可选）
if(WIN32)
    set_target_properties(GitSubmoduleManager PROPERTIES
        WIN32_EXECUTABLE TRUE
    )
endif()
